package com.hyt.it.ogt.ks.service.Event;

import com.hyt.it.ogt.ks.model.entity.CandidateLog;
import com.hyt.it.ogt.opertaion.track.model.AnswerLogVO;
import com.hyt.it.ogt.opertaion.track.model.OtherLogVO;
import lombok.Getter;
import lombok.ToString;
import org.springframework.context.ApplicationEvent;

import java.util.List;

/**
 * 新轨迹
 */
@ToString
@Getter
public class LogEvent extends ApplicationEvent {

    private List<CandidateLog> logs;
    private AnswerLogVO answerLogVO;
    private Boolean forceExec;
    private OtherLogVO otherLogVO;

    public LogEvent(List<CandidateLog> data) {
        super(new Object());
        this.logs = data;
    }

    public LogEvent(AnswerLogVO answerLogVO) {
        super(new Object());
        this.answerLogVO = answerLogVO;
    }

    public LogEvent(OtherLogVO otherLogVO) {
        super(new Object());
        this.otherLogVO = otherLogVO;
    }

    public LogEvent(Boolean forceExec) {
        super(new Object());
        this.forceExec = forceExec;
    }

}
